SwappableImage.getPixelAtOffset

Get a pixel given the position.

struct SwappableImage(Color)
@nogc @safe
Color
getPixelAtOffset
(
size_t offset
)
if (
isColor!Color
)

Parameters

offset size_t

The offset of the pixel

Return Value

Type: Color

The pixel color at point.

Throws

If offset coordinate is outside of the image boundary.

Meta